<?php

$a = array(
    'aa' => 11,
    'bb' => 22,
    'cc' => array(
        'aaa' => 111,
        'bbb' => 222,
        'ccc' => 333,
    ),
    'dd' => 44,
);
// echo serialize($a);

print_r(unserialize('a:3:{i:0;b:0;s:18:"nav_menu_locations";a:0:{}s:16:"sidebars_widgets";a:2:{s:4:"time";i:1528791013;s:4:"data";a:2:{s:19:"wp_inactive_widgets";a:0:{}s:9:"sidebar-1";a:6:{i:0;s:8:"search-2";i:1;s:14:"recent-posts-2";i:2;s:17:"recent-comments-2";i:3;s:10:"archives-2";i:4;s:12:"categories-2";i:5;s:6:"meta-2";}}}}'))
?>